package com.itxckf.mapper;


import com.itxckf.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getUser(@Param("name") String name, @Param("sts") String sts);


    @Delete("DELETE FROM Users WHERE userId = #{id};")
    void deleteUser(Short id);

    void editUser(User user);



    @Update("UPDATE Users SET Balance =#{name} WHERE UserID = #{id};")
    void editUserBalance(@Param("id") Short id,@Param("name") String name);



    @Select(" SELECT * FROM Users WHERE UserID = #{id}")
    List<User> getUserInfo(@Param("id") Short id);
}
